/** 
 * @file        delay.h
 * @brief       
 * @details     
 * @author   fulong
 * @date     Mar 28, 2014
 * @version  1.0
 * @par Copyright (c):
 *       GPLv2
 */

#ifndef DELAY_H_
#define DELAY_H_
#include "../hal_include/hal_types.h"

extern void delay(uint16 us);

extern void delay_init(void);
extern uint8 apply4delay(uint8 delay_id, uint16 delay_1ms);
extern void adjust_delay_timeout(void);
extern uint8 get_delay_flag(uint8 delay_id);
extern uint32 get_time_counter(void);
extern void clr_delay_flag(uint8 delay_id);
extern uint8 no_clr_get_delay_flag(uint8 delay_id); 
#endif /* DELAY_H_ */
